package com.zhude.k8sdemo.web;

import com.zhude.k8sdemo.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @projectName: k8sdemo
 * @packageName: com.zhude.k8sdemo.web
 * @author: zhude
 * @description:
 * @date: 2022/11/11 15:02
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;

    @GetMapping("/getAll")
    public String getAll() {
        return userService.getAll().toString();
    }

    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }
}
